home *** CD-ROM | disk | FTP | other *** search
- Hi there!
-
- > For FOO=1 To 128
- > For FOO2=1 to 128
- > If NAME$(FOO)<NAME$(FOO2) And FOO<>FOO2
- > Swap NAME$(FOO),NAME$(FOO2)
- > Swap BANKNUM(FOO),BANKNUM(FOO2)
- > EndIf
- > Next
- > Next
-
- Don't use something like this: it repeats 128^2 times the same operations,
- even if the data are already sorted.
- You can better think about a loop with a flag: if the datas are sorted,
- exit from the loop.
-
- Bye
-
-
-
- berionne@flashnet.it >>Flagger<<
- +---------------------------------------------------------------+
- | BASIC programmers never die, they GOSUB and don't RETURN. |
- +---------------------------------------------------------------+
-
-
-